Skip to content

dbeaver/pro#8486 feat: add DataReadonlyReason API for data sources#4354

Merged
serge-rider merged 4 commits into
develfrom
8486-cb-wrong-tooltip-for-the-table-type-in-some-panels
May 25, 2026
Merged

dbeaver/pro#8486 feat: add DataReadonlyReason API for data sources#4354
serge-rider merged 4 commits into
develfrom
8486-cb-wrong-tooltip-for-the-table-type-in-some-panels

Conversation

@SychevAndrey

Copy link
Copy Markdown
Contributor

Previously TableStatusIndicator relied on model.isReadonly() which lost reasons. This caused the "Read-only connection" tooltip to show in grouping panel even on editable connections — the connection wasn't read-only, the presentation was.

Each data source now declares its specific reason via getReadonlyReason(). UI maps the typed reason to an accurate message

Previously TableStatusIndicator relied on model.isReadonly() which lost reasons. This caused the "Read-only connection" tooltip to show in grouping panel even on
editable connections — the connection wasn't read-only, the
presentation was.

Each data source now declares its specific reason via getReadonlyReason(). UI maps the typed reason to an accurate
message
@SychevAndrey SychevAndrey self-assigned this May 20, 2026
@codacy-production

codacy-production Bot commented May 20, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

sergeyteleshev
sergeyteleshev previously approved these changes May 21, 2026
Default,
Readonly,
}
export enum DataReadonlyReason {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let’s try using DatabaseDataFeature to determine the model’s read-only reason (Grouping). This will allow us to keep the logic inside TableStatusIndicator, which is the only place where it’s needed.

@sergeyteleshev sergeyteleshev self-requested a review May 21, 2026 13:16
@serge-rider serge-rider merged commit 225ce91 into devel May 25, 2026
10 checks passed
@serge-rider serge-rider deleted the 8486-cb-wrong-tooltip-for-the-table-type-in-some-panels branch June 1, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants